package com.algorithms.linkedlists;

public class Link<T> {
	private Link<T> next;
	private T content;
	
	public Link<T> getNext(){
		return this.next;
	}
	public void setNext(Link<T> next){
		this.next = next;
	}
	
	public T getContent(){
		return this.content;
	}
	public void setContent(T content){
		this.content = content;
	}
	
	public Link(T content){
		this.next = null;
		this.content = content;
	}
	
	public Link(Link<T> next){
		this.next = next;
		this.content = null;
	}
	
	public Link(Link<T> next, T content){
		this.next = next;
		this.content = content;
	}	
}
